.class public Lcom/teewoo/app/bus/ui/ChangeDetailActivity;
.super Lcom/teewoo/app/bus/inface/BaseActivity;
.source "ChangeDetailActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;
    }
.end annotation


# instance fields
.field private clickListener:Landroid/view/View$OnClickListener;

.field private sectList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/Section;",
            ">;"
        }
    .end annotation
.end field

.field private sectionListView:Landroid/widget/ListView;

.field private share:Landroid/widget/ImageView;

.field private solution:Lcom/teewoo/app/bus/model/Solution;

.field private titleView:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;-><init>()V

    .line 40
    new-instance v0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$1;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$1;-><init>(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->clickListener:Landroid/view/View$OnClickListener;

    .line 30
    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 66
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->createSMS()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->sectList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$2(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 30
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method private createSMS()Ljava/lang/String;
    .locals 5

    .prologue
    .line 67
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    if-nez v3, :cond_0

    .line 68
    const/4 v3, 0x0

    .line 100
    :goto_0
    return-object v3

    .line 69
    :cond_0
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    .line 70
    .local v2, sms:Ljava/lang/StringBuffer;
    new-instance v3, Ljava/lang/StringBuilder;

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/Solution;->getFrom_station()Lcom/teewoo/app/bus/model/Station;

    move-result-object v4

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "\u2192"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/Solution;->getTo_station()Lcom/teewoo/app/bus/model/Station;

    move-result-object v4

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 71
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Solution;->getSections()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-lez v3, :cond_3

    .line 72
    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    const v4, 0x7f08008a

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string v4, ":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 73
    const/4 v0, 0x0

    .local v0, i:I
    :goto_1
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Solution;->getSections()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-lt v0, v3, :cond_1

    .line 99
    .end local v0           #i:I
    :goto_2
    const-string v3, "http://m.doudou360.com/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 100
    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_0

    .line 74
    .restart local v0       #i:I
    :cond_1
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Solution;->getSections()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/teewoo/app/bus/model/Section;

    .line 75
    .local v1, sect:Lcom/teewoo/app/bus/model/Section;
    if-eqz v0, :cond_2

    .line 76
    const v3, 0x7f080092

    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 77
    :cond_2
    const v3, 0x7f08008b

    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 78
    invoke-virtual {v1}, Lcom/teewoo/app/bus/model/Section;->getLine()Lcom/teewoo/app/bus/model/Line;

    move-result-object v4

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/Line;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 79
    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 80
    const v4, 0x7f08008c

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 81
    invoke-virtual {v1}, Lcom/teewoo/app/bus/model/Section;->getOnStation()Lcom/teewoo/app/bus/model/Station;

    move-result-object v4

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 82
    const v4, 0x7f08008d

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 83
    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 84
    const v4, 0x7f08008e

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 85
    invoke-virtual {v1}, Lcom/teewoo/app/bus/model/Section;->getOffStation()Lcom/teewoo/app/bus/model/Station;

    move-result-object v4

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 86
    const v4, 0x7f08008f

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 87
    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 88
    const v4, 0x7f080090

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 89
    invoke-virtual {v1}, Lcom/teewoo/app/bus/model/Section;->getStationNo()Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 90
    const v4, 0x7f08006c

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 91
    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 92
    const v4, 0x7f080091

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 93
    invoke-virtual {v1}, Lcom/teewoo/app/bus/model/Section;->getDistance()Ljava/lang/Double;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 94
    const v4, 0x7f08006e

    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    .line 95
    const-string v4, ";"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 73
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_1

    .line 98
    .end local v0           #i:I
    .end local v1           #sect:Lcom/teewoo/app/bus/model/Section;
    :cond_3
    const v3, 0x7f080093

    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto/16 :goto_2
.end method


# virtual methods
.method public initialUI()V
    .locals 1

    .prologue
    .line 104
    iput-object p0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->context:Landroid/content/Context;

    .line 105
    const v0, 0x7f0a009b

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->back:Landroid/view/View;

    .line 106
    const v0, 0x7f0a009f

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->share:Landroid/widget/ImageView;

    .line 107
    const v0, 0x7f0a00a2

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->titleView:Landroid/widget/TextView;

    .line 108
    const v0, 0x7f0a0002

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->sectionListView:Landroid/widget/ListView;

    .line 109
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter "savedInstanceState"

    .prologue
    .line 113
    invoke-super {p0, p1}, Lcom/teewoo/app/bus/inface/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 114
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->requestWindowFeature(I)Z

    .line 116
    const v1, 0x7f030002

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->setContentView(I)V

    .line 117
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->initialUI()V

    .line 118
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 119
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "com.teewoo.app.bus.ui.solution.key"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v1

    check-cast v1, Lcom/teewoo/app/bus/model/Solution;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    .line 120
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    if-eqz v1, :cond_0

    .line 121
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v1}, Lcom/teewoo/app/bus/model/Solution;->getSections()Ljava/util/List;

    move-result-object v1

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->sectList:Ljava/util/List;

    .line 122
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->titleView:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Solution;->getFrom_station()Lcom/teewoo/app/bus/model/Station;

    move-result-object v3

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "\u2192"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->solution:Lcom/teewoo/app/bus/model/Solution;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Solution;->getTo_station()Lcom/teewoo/app/bus/model/Station;

    move-result-object v3

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 123
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->sectionListView:Landroid/widget/ListView;

    new-instance v2, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;

    invoke-direct {v2, p0, p0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;-><init>(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 125
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->sectionListView:Landroid/widget/ListView;

    new-instance v2, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$2;

    invoke-direct {v2, p0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$2;-><init>(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 142
    :goto_0
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->back:Landroid/view/View;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 143
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->share:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 144
    return-void

    .line 139
    :cond_0
    const v1, 0x7f08004c

    invoke-static {p0, v1}, Lcom/teewoo/app/bus/util/ToastUtil;->showToastCenter(Landroid/content/Context;I)V

    goto :goto_0
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 1
    .parameter "menu"

    .prologue
    .line 148
    const/4 v0, 0x0

    return v0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 1
    .parameter "item"

    .prologue
    .line 153
    const/4 v0, 0x0

    return v0
.end method
